package two_xia.ex7.Demo03;

/**
 * @Author gwz
 * @DATA 2023/4/4 19:17
 */
public class ScrollbarDecorator extends ComponentDecorator {
    public ScrollbarDecorator(Component component) {
        super(component);
    }

    @Override
    public void show() {
        this.addScrollbar();
        super.show();
    }

    private void addScrollbar() {
        System.out.println("添加滚动条！");
    }
}
